//
//  EMGoodInfo3.m
//  ElectronicMall
//
//  Created by 史伟文 on 15/2/1.
//  Copyright (c) 2015年 cczu. All rights reserved.
//

#import "EMGoodInfo3.h"

@implementation EMGoodInfo3
- (id)initWithGoodInfo:(NSArray *)goodInfo
{
    _m_id = goodInfo[0];
    _m_imgUrl = goodInfo[1];
    _m_name = goodInfo[2];
    _m_mode = goodInfo[3];
    _m_nowPrice = goodInfo[4];
    _m_originPrice = goodInfo[5];
    _m_totalCount = goodInfo[6];
    _m_goodDesc = goodInfo[7];
    return self;
}
- (id)initWithOrderGoodInfo:(NSArray *)goodInfo
{
    _m_id = goodInfo[0];
    _m_imgUrl = goodInfo[1];
    _m_name = goodInfo[2];
    _m_mode = goodInfo[4];
    _m_nowPrice = goodInfo[6];
    _m_originPrice = goodInfo[5];
    _m_totalCount = goodInfo[7];
    _m_goodDesc = goodInfo[3];
    return self;
}
- (id)initWithEnterGoodInfo:(NSArray *)goodInfo
{
    _m_id = goodInfo[0];
    _m_imgUrl = goodInfo[3];
    _m_name = goodInfo[1];
    _m_mode = goodInfo[4];
    _m_nowPrice = goodInfo[5];
    _m_originPrice = goodInfo[2];
    _m_totalCount = goodInfo[6];
    _m_goodDesc = goodInfo[7];
    return self;
}
- (id)initWithRushGoodInfo:(NSArray *)goodInfo
{
    _m_id = goodInfo[0];
    _m_imgUrl = goodInfo[3];
    _m_name = goodInfo[1];
    _m_mode = goodInfo[4];
    _m_nowPrice = goodInfo[5];
    _m_originPrice = goodInfo[2];
    _m_totalCount = goodInfo[6];
    _m_goodDesc = goodInfo[7];
    _m_validate = goodInfo[8];
    return self;
}

@end
